class_name 野猪Operation extends Node

var operationManager = null
var big:Big			#要出大的大子

func init(om:OperationManager):
	self.operationManager = om
	return self

# 移动，周围point开启监听 
func preparation_野猪_impact():
	operationManager.arr_listeningPoints.clear()
	var point = operationManager.selectedPoint
	var arr = Array()
	var arrAroundPoints = GameUtils.getArrPointsAround(point)
	var arrShaPoints = GameUtils.getArrPointsSha()
	arr.append_array(arrAroundPoints)
	arr.append_array(arrShaPoints)
	for p in arr:
		if Terrain.jing == p.real_terrain:
			continue
		if p.small != null && p.small.player.is_me:
			continue
		operationManager.arr_listeningPoints.append(p)
	GameUtils.neatAnimation()
	big = point.big
	big.detailHide()

func 野猪_impact(point:Point):
	WebSocketManager.sendObj(true,"野猪_impact",{"start":big.point.id,"end":point.id})
	operationManager.cancel()
